/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/9 10:21
 * @Copyright 博为峰
 */
public class ArrayDemo02 {
    public static void main(String[] args) {
        /*
           数据类型[][] 数组名 = new 数据类型[一维数组的个数][]

           数据类型[][] 数组名 = {{元素1,元素2,...},{元素1,元素2,...}...}
         */

        int[][] arr = new int[3][];
        arr[0] = new int[5];
        arr[1] = new int[3];


        String[][] stus = {{"张三", "20"}, {"李四", "30", "男"}, {"王五", "50", "男", "北京"}};
        stus[2] = null;
        for (int i = 0; i < stus.length; i++) {
//            System.out.println("stus = " + stus[i]);
            if (stus[i] != null) {
                for (int i1 = 0; i1 < stus[i].length; i1++) {
                    System.out.println("stus[i][i1] = " + stus[i][i1]);
                }
            }

        }

//        stus[3] = new String[]{"赵六", "30"};


    }
}
